@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './common.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './flex.scss';
@import '//at.alicdn.com/t/font_2903734_vxcuz6kdjel.css';

/*滚动条设置，仅对chrome生效*/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 8px;
  background: #f5f5f5;
  display: none;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #ccc;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  border-radius: 6px;
  background: #f5f5f5;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
  box-sizing: border-box;
  //margin-right: calc(100% - 100vw);
  //overflow-x: hidden;
}

#app {
  min-height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a,
a:focus,
a:active {
  outline: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.w {
  width: 100%;
}

.h {
  height: 100%;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

p {
  margin: 0;
  line-height: 1.8;
  font-size: 14px;
  color: $--color-text-regular
}

h1,
h2,
h3,
h4,
h5 {
  color: $--color-text-primary
}

.tc {
  text-align: center
}

.tr {
  text-align: right
}

.tl {
  text-align: left
}

.fr {
  float: right
}

.fl {
  float: left
}

.pr {
  position: relative;
}

.pa {
  position: absolute;
}

.vm {
  vertical-align: middle;
}

.f12 {
  font-size: 12px
}

.f13 {
  font-size: 13px !important
}

.f14 {
  font-size: 14px !important
}

.f15 {
  font-size: 15px !important
}

.f16 {
  font-size: 16px !important
}

.f18 {
  font-size: 18px
}

.f24 {
  font-size: 24px !important
}

.f30 {
  font-size: 30px !important
}

.fb {
  font-weight: bold
}

.fn {
  font-weight: normal
}

.mr5 {
  margin-right: 5px !important
}

.mr10 {
  margin-right: 10px
}

.mr16 {
  margin-right: 16px
}

.mr12 {
  margin-right: 12px
}

.mr20 {
  margin-right: 20px !important
}

.mr30 {
  margin-right: 30px !important
}

.ml5 {
  margin-left: 5px
}

.ml10 {
  margin-left: 10px
}

.ml30 {
  margin-left: 30px
}

.ml16 {
  margin-left: 16px !important
}

.mt5 {
  margin-top: 5px
}

.mt10 {
  margin-top: 10px
}

.mt12 {
  margin-top: 12px
}

.mt20 {
  margin-top: 20px
}

.mt30 {
  margin-top: 30px
}

.mt40 {
  margin-top: 40px
}

.mt16 {
  margin-top: 16px !important
}

.mb5 {
  margin-bottom: 5px
}

.mb10 {
  margin-bottom: 10px
}

.mb12 {
  margin-bottom: 12px
}

.mb16 {
  margin-bottom: 16px
}

.mb30 {
  margin-bottom: 30px
}

.mb32 {
  margin-bottom: 32px
}

.p16 {
  padding: 16px
}

.c_secondary {
  color: $--color-text-secondary
}

.c_warning {
  color: $--color-warning
}

.c_error {
  color: $--color-danger
}

.c_red {
  color: #C03639
}

.c_33 {
  color: #333
}

.c_66 {
  color: #666
}

.c_99 {
  color: #999
}

.c_ff {
  color: #fff
}

@if ($envChannel =='zidanedu') {
  .c_ff {
    color: #cf0066
  }
}

.c_secondary2 {
  color: #6E645A
}

.txtEllipis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.gradientBtn {
  background: linear-gradient(90deg, $--app-linear-gradient-stop1, $--app-linear-gradient-stop2) !important;
}

.gradientVertical {
  background: linear-gradient(0deg, $--app-linear-gradient-stop1 0%, $--app-linear-gradient-stop2 100%) !important;

  &.el-button {
    color: #fff;
    border: none;

    &:hover {
      color: #fff
    }

    &.is-disabled {
      background: linear-gradient(0deg, #F5AC3C 0%, #AACD22 100%);
    }
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.tabTypes {
  .el-radio-button__inner {

    &:hover,
    &:focus {
      box-shadow: none;
      // color: #fff;
      background: linear-gradient(0deg, #EEF1F4 0%, #fff 100%);
      color: #000;
    }
  }

  .el-radio-button {
    &.is-active {
      box-shadow: none;
    }
  }

  .el-radio-button__orig-radio:checked+.el-radio-button__inner {
    // background: linear-gradient(0deg, $--app-linear-gradient-stop1 0%, $--app-linear-gradient-stop2 100%);
    // border-image: linear-gradient(0deg, rgba(245, 172, 60, 0.7), rgba(170, 205, 34, 0.7)) 1 1;
    border-image: none;
    background-color: #fff !important;
    color: #000;
    box-shadow: none;
    border-color: #fff;
  }
}

.el-table__empty-block {
  border-bottom: 1px solid #e6ebf5 !important;
}
